<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.9.1"/>
<title>opennars: aruntime/src/main/java/nars/main_nogui/CommandLineParameters.java Source File</title>
<link href="../../tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../jquery.js"></script>
<script type="text/javascript" src="../../dynsections.js"></script>
<link href="../../navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../resize.js"></script>
<script type="text/javascript" src="../../navtreedata.js"></script>
<script type="text/javascript" src="../../navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
  $(window).load(resizeHeight);
</script>
<link href="../../search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../search/searchdata.js"></script>
<script type="text/javascript" src="../../search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { init_search(); });
</script>
<link href="../../doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">opennars
   &#160;<span id="projectnumber">1.5.5</span>
   </div>
   <div id="projectbrief">1.5-ish</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.9.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "../../search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="../../index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="../../pages.html"><span>Related&#160;Pages</span></a></li>
      <li><a href="../../namespaces.html"><span>Packages</span></a></li>
      <li><a href="../../annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="../../files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="../../search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="../../search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="../../files.html"><span>File&#160;List</span></a></li>
    </ul>
  </div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('d0/dc4/CommandLineParameters_8java_source.html','../../');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="headertitle">
<div class="title">CommandLineParameters.java</div>  </div>
</div><!--header-->
<div class="contents">
<a href="../../d0/dc4/CommandLineParameters_8java.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"><a class="line" href="../../d7/dfa/namespacenars_1_1main__nogui.html">    1</a></span>&#160;<span class="keyword">package </span>nars.main_nogui;</div>
<div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;</div>
<div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="keyword">import</span> <a class="code" href="../../d7/d81/namespacenars.html">nars</a>.<a class="code" href="../../de/ddc/namespacenars_1_1storage.html">storage</a>.<a class="code" href="../../d8/df4/classnars_1_1storage_1_1Memory.html">Memory</a>;</div>
<div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;</div>
<div class="line"><a name="l00005"></a><span class="lineno"><a class="line" href="../../de/d7c/classnars_1_1main__nogui_1_1CommandLineParameters.html">    5</a></span>&#160;<span class="keyword">public</span> <span class="keyword">class </span><a class="code" href="../../de/d7c/classnars_1_1main__nogui_1_1CommandLineParameters.html">CommandLineParameters</a> {</div>
<div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;</div>
<div class="line"><a name="l00007"></a><span class="lineno"><a class="line" href="../../de/d7c/classnars_1_1main__nogui_1_1CommandLineParameters_a951a4321a1439178d5f4b173d362acb0.html#a951a4321a1439178d5f4b173d362acb0">    7</a></span>&#160;    <span class="keyword">public</span> <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="../../de/d7c/classnars_1_1main__nogui_1_1CommandLineParameters_a951a4321a1439178d5f4b173d362acb0.html#a951a4321a1439178d5f4b173d362acb0">decode</a>(String[] args, <a class="code" href="../../d8/df4/classnars_1_1storage_1_1Memory.html">Memory</a>.<a class="code" href="../../dd/da5/classnars_1_1storage_1_1Memory_1_1ReasonerBatch.html">ReasonerBatch</a> r) {</div>
<div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;        <span class="keywordflow">for</span> (<span class="keywordtype">int</span> i = 0; i &lt; args.length; i++) {</div>
<div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;            String arg = args[i];</div>
<div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;            <span class="keywordflow">if</span> (<span class="stringliteral">&quot;--silence&quot;</span>.equals(arg)) {</div>
<div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;                arg = args[++i];</div>
<div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;                r.getSilenceValue().set(Integer.parseInt(arg));</div>
<div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;            }</div>
<div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;        }</div>
<div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;    }</div>
<div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;</div>
<div class="line"><a name="l00017"></a><span class="lineno"><a class="line" href="../../de/d7c/classnars_1_1main__nogui_1_1CommandLineParameters_a2a8771fe7db16f4d6617ac234cff3851.html#a2a8771fe7db16f4d6617ac234cff3851">   17</a></span>&#160;    <span class="keyword">public</span> <span class="keyword">static</span> <span class="keywordtype">boolean</span> <a class="code" href="../../de/d7c/classnars_1_1main__nogui_1_1CommandLineParameters_a2a8771fe7db16f4d6617ac234cff3851.html#a2a8771fe7db16f4d6617ac234cff3851">isReallyFile</a>(String param) {</div>
<div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;        <span class="keywordflow">return</span> !<span class="stringliteral">&quot;--silence&quot;</span>.equals(param);</div>
<div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;    }</div>
<div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;}</div>
<div class="ttc" id="classnars_1_1storage_1_1Memory_html"><div class="ttname"><a href="../../d8/df4/classnars_1_1storage_1_1Memory.html">nars.storage.Memory</a></div><div class="ttdoc">The memory of the system. </div><div class="ttdef"><b>Definition:</b> <a href="../../db/d0c/Memory_8java_source.html#l00051">Memory.java:51</a></div></div>
<div class="ttc" id="classnars_1_1main__nogui_1_1CommandLineParameters_html"><div class="ttname"><a href="../../de/d7c/classnars_1_1main__nogui_1_1CommandLineParameters.html">nars.main_nogui.CommandLineParameters</a></div><div class="ttdef"><b>Definition:</b> <a href="../../d0/dc4/CommandLineParameters_8java_source.html#l00005">CommandLineParameters.java:5</a></div></div>
<div class="ttc" id="namespacenars_1_1storage_html"><div class="ttname"><a href="../../de/ddc/namespacenars_1_1storage.html">nars.storage</a></div><div class="ttdef"><b>Definition:</b> <a href="../../d6/dce/Bag_8java_source.html#l00021">Bag.java:21</a></div></div>
<div class="ttc" id="classnars_1_1main__nogui_1_1CommandLineParameters_a2a8771fe7db16f4d6617ac234cff3851_html_a2a8771fe7db16f4d6617ac234cff3851"><div class="ttname"><a href="../../de/d7c/classnars_1_1main__nogui_1_1CommandLineParameters_a2a8771fe7db16f4d6617ac234cff3851.html#a2a8771fe7db16f4d6617ac234cff3851">nars.main_nogui.CommandLineParameters.isReallyFile</a></div><div class="ttdeci">static boolean isReallyFile(String param)</div><div class="ttdef"><b>Definition:</b> <a href="../../d0/dc4/CommandLineParameters_8java_source.html#l00017">CommandLineParameters.java:17</a></div></div>
<div class="ttc" id="namespacenars_html"><div class="ttname"><a href="../../d7/d81/namespacenars.html">nars</a></div></div>
<div class="ttc" id="classnars_1_1storage_1_1Memory_1_1ReasonerBatch_html"><div class="ttname"><a href="../../dd/da5/classnars_1_1storage_1_1Memory_1_1ReasonerBatch.html">nars.storage.Memory.ReasonerBatch</a></div><div class="ttdef"><b>Definition:</b> <a href="../../db/d0c/Memory_8java_source.html#l00853">Memory.java:853</a></div></div>
<div class="ttc" id="classnars_1_1main__nogui_1_1CommandLineParameters_a951a4321a1439178d5f4b173d362acb0_html_a951a4321a1439178d5f4b173d362acb0"><div class="ttname"><a href="../../de/d7c/classnars_1_1main__nogui_1_1CommandLineParameters_a951a4321a1439178d5f4b173d362acb0.html#a951a4321a1439178d5f4b173d362acb0">nars.main_nogui.CommandLineParameters.decode</a></div><div class="ttdeci">static void decode(String[] args, Memory.ReasonerBatch r)</div><div class="ttdef"><b>Definition:</b> <a href="../../d0/dc4/CommandLineParameters_8java_source.html#l00007">CommandLineParameters.java:7</a></div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="../../dir_ed82ebcd34e530b246c6fd9032262140.html">aruntime</a></li><li class="navelem"><a class="el" href="../../dir_19496ddff8e6c0f2b6654287ecb1a472.html">src</a></li><li class="navelem"><a class="el" href="../../dir_db9c5934f797909f7296c2c2017f7fc9.html">main</a></li><li class="navelem"><a class="el" href="../../dir_6d74390eb6d6287951075e525bcb9bed.html">java</a></li><li class="navelem"><a class="el" href="../../dir_51a24984472456d47100350cd31f9a7c.html">nars</a></li><li class="navelem"><a class="el" href="../../dir_9560cdd14343b29fb44d60e912336e36.html">main_nogui</a></li><li class="navelem"><a class="el" href="../../d0/dc4/CommandLineParameters_8java.html">CommandLineParameters.java</a></li>
    <li class="footer">Generated on Sun Jan 10 2016 18:03:58 for opennars by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="../../doxygen.png" alt="doxygen"/></a> 1.8.9.1 </li>
  </ul>
</div>
</body>
</html>
